from selenium import webdriver
import time

driver = webdriver.Firefox()
driver.get("https://www.baidu.com")
time.sleep(2)
driver.find_element_by_partial_link_text("hao").click()
time.sleep(2)
driver.quit()
